<template>
  <div>
    <header>
      <span>123qw</span>
    </header>
    <input
      type="text"
      :value="value"
      @input="
        (e) => {
          $emit('input', e.target.value);
        }
      "
    />
  </div>
</template>

<script>
export default {
  // props: {
  //   value: {
  //     type: String,
  //     default: 12,
  //   },
  // },
  model: {
    event: "input",
  },
  inject: ["pro"],
  mounted() {
    console.log(this.$attrs, "asd", this.$listeners);
  },
  data() {
    return {
      msg: "123",
    };
  },
};
</script>

<style></style>
